/*
 * @Author: your name
 * @Date: 2021-08-29 18:06:23
 * @LastEditTime: 2021-08-29 18:18:55
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: /frame-project-interview/Users/wanghui/Documents/lgPracticeWork/shop-admin-template/src/router/index.ts
 */
// src\router\index.ts
import { createRouter, RouteRecordRaw, createWebHashHistory } from 'vue-router'

const routes: RouteRecordRaw[] = [
  {
    path: '/',
    component: () => import('../views/home/index.vue')
  },
  {
    path: '/login',
    component: () => import('../views/login/index.vue')
  }
]

const router = createRouter({
  history: createWebHashHistory(), // 路由模式
  routes
})

export default router
